package com.aaa.controller;


import com.aaa.service.impl.ReportServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @ClassName: MenuController
 * @Description: TODO
 * @Author: 86139
 * @Date: 2021/9/3 22:41
 * @Version:1.0
 **/
@Api(tags = "举报处理管理")
@RestController
@CrossOrigin
@RequestMapping("report")
public class ReportController {
    @Resource
    ReportServiceImpl reportService;

    @ApiOperation("查询所有举报处理")
    @RequestMapping(value = "SelectAll",method = RequestMethod.POST)
    public List<Map<String,Object>> SelectAll()
    {
        return reportService.SelectAll();
    }

    @ApiOperation("修改举报处理为1  已处理")
    @RequestMapping(value = "update",method = RequestMethod.POST)
    public int update(Integer reid)
    {
        return reportService.update(reid);
    }



}
